import { GMInterface } from '../../../../GameCommon/scripts/defines/GMInterface';
import { BCProjectDefines } from '../../utils/BCProjectDefines';

/**
 * Predefined variables
 * Name = PlatformInterface
 * DateTime = Fri Dec 31 2021 18:06:49 GMT+0800 (中国标准时间)
 * Author = 风流鼻涕淌
 * FileBasename = PlatformInterface.ts
 * FileBasenameNoExtension = PlatformInterface
 * URL = db://assets/Main/script/Controller/platform/PlatformInterface.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */

export abstract class BCPlatformInterface {
	abstract setScreenOrientation(orientation: BCProjectDefines.ScreenOrientation);
	abstract getDeviceId(): string;
	abstract getAppVersion(): string;
	abstract showToast(toast: string);
	abstract copy(text: string);
	abstract sendEvent(eventName: string, params?: Map<string, any>);
	abstract vibrate(duration: number);		//振动
}
